﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<iBuproModel.OwnerRequest>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%:Html.Translate("projectRequests")%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:Html.Translate("projectRequests")%></h2>

    <table>
        <thead>
            <tr>
                <th>
                    <%:Html.Translate("name") %>
                </th>
                <th>
                    <%:Html.Translate("user") %>
                </th>

                <th>
                    <%:Html.Translate("akce") %>
                </th>
            </tr>
        </thead>
        <tbody>
    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: item.Project.Name %>
            </td>
            <td>
                <%: item.User.FirstName %> <%: item.User.LastName %> (<%: item.User.Email %>)
            </td>
            <td>
                <%: Html.ActionLink(Html.Translate("accept"), "AcceptRequest", new { id = item.Id })%> | 
                <%: Html.ActionLink(Html.Translate("deny"), "DenyRequest", new { id = item.Id })%>
            </td>
        </tr>
    
    <% } %>
    </tbody>
    </table>


</asp:Content>

